#include "Observer.h"
#include "Subject.h"

int main(int argc, char** argv)
{
	Subject* img = new ImageSubject;

	Observer* obv1 = new ContentObserver(img);
	Observer* obv2 = new SizeObserver(img);

	img->SetState("..\\images\\baboon.bmp");
	img->Notify();

	img->SetState("..\\images\\airplane.bmp");
	img->Notify();

	delete obv1;
	delete obv2;
	delete img;

	return 0;
}